package com.cc.eds;

import com.cc.eds.model.GlobalData;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;


/**
 * @author Administrator
 */
public class EdsApp extends Application {
    @Override
    public void start(Stage stage) throws IOException {
        GlobalData.initData();
        FXMLLoader fxmlLoader = new FXMLLoader(EdsApp.class.getResource("/views/main-view.fxml"));
        Scene scene = new Scene(fxmlLoader.load(), 800, 600);
        stage.setTitle("电子数据浏览工具");
        stage.setScene(scene);
        MainController controller = fxmlLoader.getController();
        controller.setStage(stage);
        stage.show();
    }

}